package cn.com.mall.product.service;

import cn.com.mall.product.entity.CategoryEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.com.mall.common.utils.PageUtils;
import cn.com.mall.product.entity.CategoryBrandRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author yangwen
 * @email yangwen@servyou.com.cn
 * @date 2020-04-09 23:52:34
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveDetail(CategoryBrandRelationEntity categoryBrandRelation);

    /**
     * 根据品牌id获取分类列表
     * @param brandId
     * @return
     */
    List<CategoryBrandRelationEntity> getCatelogListByBrandId(Long brandId);

    /**
     * 根据分类id获取品牌列表
     * @param catId
     * @return
     */
    List<CategoryBrandRelationEntity> getBrandListByCatelogId(Long catId);


    void updateBCategoryBrandNameByBrandId(Long brandId, String brandName);
}

